$('.m-focus .switchable-content li').each(function(index, element) {
    var imgsrc=$(this).find('img').attr('src');
    $(this).css({'background':'url('+ imgsrc +') center top no-repeat'});
});
$('.m-focus').slide({
    speed: 'slow',
    interval: 5000,
    navCls: 'switchable-nav',
    contentCls: 'switchable-content',
    pauseOnHover: false,
    caption: false,   
    cur:'active',
    prevBtnCls:'f-prev',
    nextBtnCls:'f-next',
    evtype: 'mouse',
    effect:'fade'   //'random', 'normal', 'fade', 'scroll', 'fold', 'slice', 'slide', 'shutter', 'grow'   
});
if($('.m-focus .switchable-content li').length > 1){
    $('.m-focus').hover(function(){
        $(this).find('.f-prev').stop(true,false).animate({
            left:'50px'},
            500);
        $(this).find('.f-next').stop(true,false).animate({
            right:'50px'},
            500);
    },function(){
        $(this).find('.f-prev').stop(true,false).animate({
            left:'-100px'},
            500); 
        $(this).find('.f-next').stop(true,false).animate({
            right:'-100px'},
            500);
    });
}